Skip to content

feat(antd-py): expose new HealthStatus diagnostic fields#39

Merged
Nic-dorman merged 1 commit into
mainfrom
feat/antd-py-health-enrichment
May 6, 2026
Merged

feat(antd-py): expose new HealthStatus diagnostic fields#39
Nic-dorman merged 1 commit into
mainfrom
feat/antd-py-health-enrichment

Conversation

@Nic-dorman
Copy link
Copy Markdown
Collaborator

Summary

Mirrors the daemon-side enrichment shipped in #38antd-py's HealthStatus now carries version, evm_network, uptime_seconds, build_commit, payment_token_address, payment_vault_address. All default to "" / 0 so the dataclass remains constructable when talking to a pre-0.4.0 daemon.

Changes

  • models.HealthStatus: 6 new fields with defaults
  • REST sync + async clients share a _health_status_from_json helper
  • gRPC sync + async clients share a _health_status_from_resp helper
  • Proto stubs regenerated against the updated schema
  • Mock RestClient test populates + asserts all 6 fields
  • New regression test for the pre-0.4.0 daemon shape (no diagnostic fields)

Test plan

  • pytest tests/ — 47 passed, 7 integration skipped (require live daemon)

Part of #37.

🤖 Generated with Claude Code

Mirrors antd-go v0.5.0: HealthStatus now carries version, evm_network,
uptime_seconds, build_commit, payment_token_address, and
payment_vault_address. All default to "" / 0 so the dataclass remains
constructable when talking to a pre-0.4.0 daemon that doesn't report
them.

Both REST clients (sync + async) and both gRPC clients (sync + async)
share helpers — _health_status_from_json in _rest.py and
_health_status_from_resp in _grpc.py — so the parsing only lives in
one place each.

Proto stubs regenerated. Mock RestClient test extended to populate +
assert all 6 new fields. Added a regression test asserting that
older-daemon responses (just status + network) still parse.

Part of #37.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Nic-dorman Nic-dorman merged commit 6edf73c into main May 6, 2026
@Nic-dorman Nic-dorman deleted the feat/antd-py-health-enrichment branch May 6, 2026 12:15
Nic-dorman added a commit that referenced this pull request May 6, 2026
The check_health tool now returns the antd-py HealthStatus diagnostic
fields (version, evm_network, uptime_seconds, build_commit,
payment_token_address, payment_vault_address) alongside the existing
healthy/network. They populate from the antd-py client; on a pre-0.4.0
daemon they come back as empty / 0 thanks to antd-py's defaults.

This SDK is a thin MCP wrapper around antd-py — no model or proto
changes needed here; once antd-py PR #39 lands, the client surfaces
the new fields automatically.

Part of #37.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant